<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.png">
  <title>点名小程序</title>
  <script>
    // 基准大小
    const baseSize = 192
    // 设置 rem 函数
    function setRem() {
      const scale = document.documentElement.clientWidth / 1920
      // 设置页面根节点字体大小
      // eslint-disable-next-line
      document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px'
    }
    // 初始化
    setRem()
    // 改变窗口大小时重新设置 rem
    window.onresize = function () {
      setRem()
    }
  </script>
</head>

<body>
  <noscript>
    <strong>
      We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.
    </strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>

</html>